<template>
  <div class="sample-components-general">
    <a-card title="Cron - Cron选择器" :bordered="false">
      <p>可视化生成Cron表达式</p>
      <a-form-model
        ref="form"
        :label-col="FORM_LAYOUT.labelCol"
        :wrapper-col="FORM_LAYOUT.wrapperCol">
        <a-row class="form-row" :gutter="16">
          <a-col :lg="12" :sm="24">
            <a-form-model-item label="Cron">
              <e-cron v-model="value"/>
            </a-form-model-item>
          </a-col>
        </a-row>
      </a-form-model>
    </a-card>
  </div>
</template>

<script>
import { FORM_LAYOUT, FULL_FORM_LAYOUT } from '@/utils/const/form'
import ECron from '@/components/Easy/data-entry/corn/Cron'

export default {
  name: 'SampleComponentsDataEntryCron',
  components: { ECron },
  data () {
    return {
      FULL_FORM_LAYOUT: FULL_FORM_LAYOUT,
      FORM_LAYOUT: FORM_LAYOUT,
      value: '0 0 0 1/1 * ? *'
    }
  },
  mounted () {

  }
}
</script>

<style scoped>

</style>
